// 默认在语句末尾需要加分号
export const name = 'ESLint';

export class Foo {
  // 默认在语句末尾需要加分号
  public bar = '1';
}

var name = "ESLint";

object.method = function() {
  // ...
};

class Foo {
  bar = 1;
}

import * as utils from './utils';
// output: import * as utils from './utils';

import { square, diag } from 'lib';
// output: import { square, diag } from 'lib';

import { default as foo } from 'lib';
// output: import { default as foo } from 'lib';

import 'src/mylib';
// output: import 'src/mylib';

import theDefault, { named1, named2 } from 'src/mylib';
// output: import theDefault, { named1, named2 } from 'src/mylib';

function foo() { return []; }
// output: function foo() { return []; }

while(true) { break; }
// output: while(true) { break; }

while(true) { continue; }
// output: while(true) { continue; }

let x = 5;
// output: let x = 5;

var x = 5;
// output: var x = 5;

var x = 5, y;
// output: var x = 5, y;

debugger;
// output: debugger;

foo();
// output: foo();

foo();
  bar();
// output:foo();
//   bar();

for (var a in b) var i;
// output: for (var a in b) var i;

for (;;){var i;}
// output: for (;;){var i;}
for (;;) var i;
// output: for (;;) var i;


for (var j;;) {var i;}
// output:for (var j;;) {var i;}

var foo = {
  bar: baz
};
/*output: var foo = {
  bar: baz
};*/

var foo;
  var bar;
/*output: var foo;
  var bar;*/

throw new Error('foo');
// output: throw new Error('foo');

do{}while(true);
// output: do{}while(true);

if (foo) {bar();}
// output: if (foo) {bar();}

if (foo) {bar();}
// output: if (foo) {bar();}

if (foo) {bar();
}
/*output: if (foo) {bar();
}*/

class C { static { foo();
  bar(); } }
/*output: class C { static { foo();
  bar(); } }*/

class C { static { foo(); bar();
  baz(); } }
/*output: class C { static { foo(); bar();
  baz(); } }*/

export * from 'foo';
// output: export * from 'foo';
export { foo } from 'foo';
// output: export { foo } from 'foo';
var foo = 0;export { foo };
// output: var foo = 0;export { foo };
export var foo;
// output: export var foo;
export let foo;
// output: export let foo;
export const FOO = 42;
// output: export const FOO = 42;
export default foo || bar;
// output: export default foo || bar;
export default (foo) => foo.bar();
// output: export default (foo) => foo.bar();
export default foo = 42;
// output: export default foo = 42;
export default foo += 42;
// output: export default foo += 42;

class C { foo;
  [bar]; }
/*
output: class C { foo;
  [bar]; }*/
